import request from "@/utils/request";
import type {
  RequestParams,
  ResponseData,
  inventoryTimeRequestParams,
} from "./type";

// 分页列表
export const lmsSupplierConfigList = (data: RequestParams) => {
  return request<ResponseData<inventoryTimeRequestParams>>({
    url: "/api/v1/lmsInterfaceSyncLog/page",
    method: "post",
    data,
    headers: {
      //需要加密的请求在头部塞入标识
      isEncrypt: 1,
    },
  });
};

export const LibraryOptions = (aesKeyByRsa: string) => {
  return request<ResponseData<any>>({
    url: "/api/v1/library/options",
    method: "post",
    data: aesKeyByRsa,
    headers: {
      //需要加密的请求在头部塞入标识
      isEncrypt: 1,
    },
  });
};
export const supplierOptions = (aesKeyByRsa: string) => {
  return request<ResponseData<any>>({
    url: "/api/v1/lmsSupplierConfig/list",
    method: "post",
    data: aesKeyByRsa,
    headers: {
      //需要加密的请求在头部塞入标识
      isEncrypt: 1,
    },
  });
};
